MediaDeviceState enum Null safety

媒体设备状态

Constants

added → const MediaDeviceState

设备已插入

const MediaDeviceState(3)
interruptionBegan → const MediaDeviceState

系统通话打断了音视频通话,将在通话结束后自动恢复

const MediaDeviceState(5)
interruptionEnded → const MediaDeviceState

音视频通话已从被打断状态中恢复

const MediaDeviceState(6)
removed → const MediaDeviceState

设备被移除

const MediaDeviceState(4)
runtimeError → const MediaDeviceState

设备运行时错误

例如,当媒体设备的预期行为是正常采集,但没有收到采集数据时,将回调该状态。

const MediaDeviceState(2)
started → const MediaDeviceState

设备开启采集

const MediaDeviceState(0)
stopped → const MediaDeviceState

设备停止采集

const MediaDeviceState(1)
values → const List<MediaDeviceState>

A constant List of the values in this enum, in order of their declaration.

const List<MediaDeviceState>

Properties

hashCode → int
The hash code for this object. [...]
read-only, inherited
index → int

The integer index of this enum.

final
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
A string representation of this object. [...]
override

Operators

operator ==(Object other) → bool
The equality operator. [...]
inherited